package com.niit.dao;

import com.niit.model.*;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface AdminDao {
   List<Admin> selectAdminList();
   List<Student> selectStudentList();
   List<Teacher> selectTeacherList();
   List<Classes>  selectClassesList();
   List<Question> selectQuestionList();
   List<ExamPaper> selectExamPaperList();


   Admin selectAdminById(@Param("id") Long id);
   Student selectStudentById(@Param("id") Long id);
   Teacher selectTeacherById(@Param("id") Long id);
   Classes selectClassById(@Param("id") Long id);
   Question selectQuestionById(@Param("id") Long id);
   ExamPaper selectExamPaperById(@Param("id")Long id);

   int insertAdmin(Admin admin);
   int insertStudent(Student student);
   int insertTeacher(Teacher teacher);
   int insertClass(Classes classes);
   int insertQuestion(Question question);
   int insertExamPaper(ExamPaper examPaper);

   int updateAdmin(@Param("id") Long id);
   int updateTeacher(@Param("id") Long id);
   int updateStudent(@Param("id") Long id);
   int updateClass(@Param("id") Long id);
   int updateQuestion(@Param("id") Long id);
   int updateExamPaper(@Param("id") Long id);
   int updatestatus(@Param("id") Long id);

   int deleteAdminById(Long id);
   int deleteStudentById(Long id);
   int deleteTeacherById(Long id);
   int deleteClassById(Long id);
   int deleteQuestionById(Long id);
   int deleteExamPaperById(Long id);
}
